<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/layouts/template.xhtml">
	<ui:define name="body">
		<h:form id="form" acceptcharset="ISO-8859-1" enctype="multipart/form-data">
			<p:panel header="#{msgs['massai.import.header']}">

				<p style="color: #F00; font-weight: bold;">
					#################################################################<br/>
					# ATENÇÃO:<br />
					# A MÁ UTILIZAÇÃO DESSA FUNCIONALIDADE PODE GERAR<br /> 
					# INCONSISTÊNCIA DE DADOS.<br />
					# CONTINUE APENAS SE TIVER TOTAL CONCIÊNCIA DO QUE IRÁ FAZER.<br />
					#################################################################<br/>
				</p>

				<p:fileUpload
					fileUploadListener="#{fileBean.handleFileUpload}"
					allowTypes="/(\.|\/)(txt)$/" auto="false" 
					cancelLabel="#{msgs['massai.import.cancelLabel']}"
					label="#{msgs['massai.import.chooseLabel']}"
					uploadLabel="#{msgs['massai.import.uploadLabel']}"
					mode="advanced" multiple="false"
					dragDropSupport="false"
					value="#{fileBean.file}"
					invalidFileMessage="Tipo de arquivo inválido"
					invalidSizeMessage="Arquivo maior que o tamanho permitido" />

			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
</html>